package com.example.practice.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("t_dict")
public class Dict implements Serializable {

    @TableId(type = IdType.AUTO) // 主键自增
    private int id;

    private String dname;
    private String dtype;
    private Integer dstate;
    private String mark;

    @TableField("create_by")
    private String createBy;

    @TableField("update_by")
    private String updateBy;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Version
    private int version;

    @TableLogic
    private int isDel;   // 删除标记（0未删，1已删）
}